package com.gress.shop.dao;

import com.gress.shop.bo.Menu;
import com.gress.shop.bo.example.MenuExample;

import java.util.List;

/**
 * Created xiongwen with 2018/3/6 15:22
 * Description:
 */
public interface IMenuDao {

    Menu update(Menu menu);

    Menu save(Menu menu);

    int deleteById(String id);

    Menu selectMenuById(String id);

    List<Menu> queryByExample(MenuExample example);

    /**
     * 全部类型
     * */
    List<Menu> queryBLawfulMenu();

    /**
     * 单独是跳转功能
     * **/
    List<Menu> queryIsNotMenu();

    void saveSortCode(Menu menu);

    List<Menu> queryChildrenByParentId(String pId);

    List<Menu> selectMenuByIds(List<String> menuIdList);
}
